package com.app.service;

import com.app.common.Result;
import com.app.model.ClassificationSubclass;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 团购分类子类表 服务类
 * </p>
 *
 * @author shaokuiling
 * @since 2024-09-24
 */
public interface IClassificationSubclassService extends IService<ClassificationSubclass> {

    /**
     * 管理后台————新增
     * @param classificationSubclass
     * @return
     */
    Result addAndUpdate(ClassificationSubclass classificationSubclass);

    /**
     * 管理后台————删除
     * @param id
     * @return
     */
    Result daleteById(Integer id);


    /**
     * 根据categoryId批量查询
     * @param idList
     * @return
     */
    List<ClassificationSubclass> listBycategoryIds(List<Integer> idList);
}
